Skip to content

Fix public kid search and friends#43

Open
pablonete wants to merge 5 commits into
mainfrom
pablonete-fix-kid-search
Open

Fix public kid search and friends#43
pablonete wants to merge 5 commits into
mainfrom
pablonete-fix-kid-search

Conversation

@pablonete

Copy link
Copy Markdown
Member

Home-page kid search should work before magic-link login, while avoiding expensive full-list fetches for a fast-changing registration list. This PR switches remote kid lookup to on-demand single-kid requests, keeps favorite kid profiles in localStorage, and refreshes all friend passport progress with one batch request.

Summary

  • Add public single-kid lookup and batch passport progress reads while keeping full kid-list reads staff-only.
  • Cache favorite kid profiles locally so known friends render without refetching kid metadata.
  • Add a refresh button to the Kids section that updates all friends' progress in one request.
  • Replace the old colored gender blobs with clearer outline avatar icons for boy, girl, and NR.
  • Stop deploying the public GitHub Pages demo from pushes to main.

Validation

  • npm run lint -- --quiet
  • npm run build
  • Netlify-local checks for single kid lookup, single passport, and batch passport endpoints

Load kid search results on demand, cache favorite kids locally, refresh friend passport progress in a single batch request, update kid gender icons, and stop deploying the public gh-pages demo from main pushes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for kid-a ready!

Name Link
🔨 Latest commit 749b8b1
🔍 Latest deploy log https://app.netlify.com/projects/kid-a/deploys/6a3cee43bcfbc70008a92c65
😎 Deploy Preview https://deploy-preview-43--kid-a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

pablonete and others added 4 commits June 25, 2026 10:48
Remove the home admin access button and guest avatar. Show a logged-in user avatar on the home page only when a kid or staff role is active, and make it navigate back to that role's page.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refresh the initial activities seed data from opensouthcode/2026#4 with the current 16 activity titles and their GitHub issue URLs, without lead names.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add short initial descriptions for all 16 activities from their GitHub issues and label issue links as more details in the activity UI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Apply review feedback to simplify the Anima tu dibujo activity description.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant